package com.lej.dataservice.club.http

import com.google.gson.JsonObject
import okhttp3.RequestBody
import org.json.JSONObject
import retrofit2.http.*


val apiService: ApiService = RetrofitClient.getInstance().create(ApiService::class.java)

interface ApiService {
    //region ╔====================================common====================================╗
    /** 获取七牛token*/
    @Headers("Content-Type: application/json")
    @POST("/qiniu/uploadToken")
    suspend fun uploadToken(@Body body: RequestBody): BaseResponse<JsonObject>

    @Headers("Content-Type: application/json")
    @POST("/user/CId")
    suspend fun bindCid(@Body body: RequestBody): BaseResponse<JSONObject>

    @FormUrlEncoded
    @POST("trove/real_id")
    suspend fun realNameAuth(
        @Field("name") name: String?,
        @Field("id_number") id_number: String?
    ): BaseResponse<JsonObject>
}